package cn.feng.thinkInJava.基础.Object;
// object/StorageTest.java
// TIJ4 Chapter Object, Exercise 6, page 90
// Write a program that includes and calls the storage() method defined as a
//编写一个程序,让它包含本章所定义的storage()方法的代码段,并调用自
// code fragment in this chapter.
public class StorageTest {	
	public static void main(String[] args) {
		class StoreStuff {
			int storage(String s) {
				return s.length() * 2;
			}	
		}
		StoreStuff x = new StoreStuff();
		System.out.println(x.storage("hi"));		
	}
}
